Skip to content

Promote to production: Repair PDF tool - #89

Merged
slaveofcode merged 2 commits into
mainfrom
develop
Aug 1, 2026
Merged

Promote to production: Repair PDF tool#89
slaveofcode merged 2 commits into
mainfrom
develop

Conversation

@slaveofcode

Copy link
Copy Markdown
Owner

Ships the client-side Repair PDF tool (mupdf structural repair + force rebuild).

🤖 Generated with Claude Code

Kresna and others added 2 commits August 1, 2026 19:01
Fix damaged PDFs entirely in the browser (mupdf WASM) — the file never leaves
the device, unlike server-side repair tools.

- mupdf worker gains repair(bytes, force): opening auto-rebuilds a broken xref,
  then save with garbage=deduplicate,sanitize,clean writes a clean structure.
  force rebuilds page-by-page into a fresh document (graftPage, skipping
  unrecoverable pages) — recovers what's still readable from badly broken files.
  Returns the repaired bytes + recovered page count.
- repairPdf client wrapper + pdf.lib re-export. Thin island (Repair / Force
  rebuild), PdfPreview + download, honest copy about what can't be recovered.
- Registered pdf-repair (PDF, Wrench, beta).

546 tests · lint clean · build green (/tools/pdf-repair built). mupdf path is
worker/WASM — build + manual smoke (like the other PDF tools).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
feat(pdf-repair): client-side Repair PDF tool
@slaveofcode
slaveofcode merged commit 5271bee into main Aug 1, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant